﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace proyecto
{
    /// <summary>
    /// Lógica de interacción para AffyAccess.xaml
    /// </summary>
    public partial class AffyAccess : Window
    {

        bool canceled;
        public AffyAccess(string user, string pass)
        {

            InitializeComponent();
            canceled = true;
            if (user != "")
            {
                textBox1.Text = user;
                passwordBox1.Password = pass;
            }

        
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            canceled = false;
            this.Close();
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void button3_Click(object sender, RoutedEventArgs e)
        {
            System.Diagnostics.Process.Start("https://www.affymetrix.com/estore/user/termsOfUse.jsp");
        }

        public string getUser()
        {
            return textBox1.Text;
        }

        public string getPassword()
        {
            return passwordBox1.Password;
        }

        public bool getCanceled()
        {
            return canceled;
        }
        
    }
}
